<?php

namespace post\modules\user\service;

use post\modules\user\models\Fan;
use Yii;

class FanService
{

    //
    public function actionTest()
    {

        echo __DIR__;
    }

    public static function isFan($star_id,$fan_id)
    {
        return  Fan::find()
            ->where(['star_id' => $star_id])
            ->andWhere(['fan_id' => $fan_id])->one();
    }
}
